<template>
  <div>
      购物车
  </div>
</template>

<script>
  // console.log(boolean);
export default {
  beforeRouteEnter (to, from, next) {
   var status=JSON.parse(localStorage.getItem('status')) 

    if(status){
      next('/')
    }else if(status==false){
      next('/login')
    }
  }
}
</script>

<style>

</style>